import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'amfe-flexible'
import App from './App.vue'
import router from './router'
import Vant from 'vant'
import 'vant/lib/index.css'
import TarBar from '@/components/tarBar/index.vue'

import '@/assets/styles/reset.css'
import mitt from 'mitt'
import {VueMasonryPlugin} from 'vue-masonry';
const emitter = mitt()
const app = createApp(App)
app.config.globalProperties.emitter = emitter
app.component('TarBar',TarBar)
app.use(createPinia())
app.use(router)
app.use(Vant)
app.use(VueMasonryPlugin)
app.mount('#app')
